package com.xyht.medicine_management_system.common.commonReturn;

/**
 * @author Ikaros
 * @date 2020/1/26 18:19
 */
public class CustomException extends RuntimeException {
  private ResponseResult CommonResult;

  public CustomException() {}

  public CustomException(ResponseResult resultCode) {
    super("错误代码：" + resultCode.getCode() + "错误信息：" + resultCode.getMsg());
    this.CommonResult = resultCode;
  }

  public ResponseResult getCommonResult() {
    return CommonResult;
  }
}
